import pickle
lst = ['哈哈','嘿嘿','\(^o^)/~']
print(pickle.dumps(lst))

bs = b'\x80\x03]q\x00(X\x06\x00\x00\x00\xe5\x93\x88\xe5\x93\x88q\x01X\x06\x00\x00\x00\xe5\x98\xbf\xe5\x98\xbfq\x02X\x08\x00\x00\x00\\(^o^)/~q\x03e.'
print(pickle.loads(bs))

pickle.dump(lst,open(r'lst.dat',mode='wb'))
a = pickle.load(open(r'lst.dat',mode='rb'))
print(a)